// import '../assets/main.scss'

import { createApp } from "vue";
import App from "./App.vue";
//导入路由
import router from "./router";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
// Vuex
import { counterStore } from "./vuexStore";
// pinia
import { createPinia } from "pinia";

const app = createApp(App);
// pinia
const pinia = createPinia(App);

app.use(router); //路由

app.use(ElementPlus);
// Vuex
app.use(counterStore);
// pinia
app.use(pinia);
app.mount("#app");
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
